package com.muyan.sys.common.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 读取项目相关配置
 * 
 * @author muyan
 */
@Configuration
@ConditionalOnProperty("spring.redis.cluster")
@ConfigurationProperties(prefix = "spring.redis.cluster")
@Data
public class RedisCloudConfig
{
    /** 项目名称 */
         private String[]  nodes;

    /** 数据 */

    private int timeout = 3000;
    private int pingTimeout = 1000;
    private int retryInterval = 1500;

    private int connectionPoolSize = 500;

    private int connectionMinimumIdleSize = 10;

    private int slaveConnectionPoolSize = 500;

    private int masterConnectionPoolSize = 500;


}
